home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 3 / Amiga Tools 3.iso / packer / gzip-1.2.2 / amiga / smakefile < prev    next >
Encoding:
Makefile  |  1993-06-20  |  2.1 KB  |  67 lines

  1. # Makefile for gzip (GNU zip)    -*- Indented-Text -*-
  2. # This Makefile is for SAS/C 6.2 on the Amiga
  3. # Made by Carsten Steger (carsten.steger@informatik.tu-muenchen.de)
  4.  
  5. # Some notes on gzip for the Amiga:
  6. # Due to a broken implementation of readdir() in the SAS/C 6.2 library
  7. # you should not use gzip -r on a directory in the RAM-Disk. To zip all
  8. # files in a directory 'dir' in the RAM-Disk use something like
  9. # gzip ram:dir/#? ram:dir/#?/#? ...
  10. # where the number of '#?'s reflects the depth of the directory 'dir'.
  11. #
  12. # Alas, the program has it's full functionality only if you have
  13. # Kickstart 2.0 or higher installed. This affects the expansion of
  14. # wildcards and the preservation of file access times. You should use
  15. # a shell that does wildcard expansion under Kickstart 1.3.
  16.  
  17.  
  18. CC = sc
  19.  
  20. # If you have a 68020 or more you can define UNALIGNED_OK below
  21. DEFS = DEF=AMIGA # DEF=UNALIGNED_OK
  22. LIBS = LIB LIB:scnb.lib
  23.  
  24. CFLAGS = NOVERSION DATA=FAR NOSTKCHK IDIR= # CPU=68020
  25. OPTFLAGS = OPT OPTGO OPTPEEP OPTCOMP=5 OPTDEP=5 OPTRDEP=5 OPTINLOCAL OPTTIME
  26. # PARM=R not yet supported in CFLAGS
  27. LDFLAGS = FROM LIB:c.o
  28.  
  29. OBJS = gzip.o zip.o deflate.o trees.o bits.o unzip.o inflate.o util.o \
  30.       crypt.o lzw.o unlzw.o unpack.o unlzh.o getopt.o alloca.o tailor.o match.o
  31.  
  32. .c.o:
  33.     $(CC) $(DEFS) $(CFLAGS) $(OPTFLAGS) $<
  34. .a.o:
  35.     $(CC) $(DEFS) $(CFLAGS) $<
  36.  
  37. all: gzip
  38.  
  39. gzip: $(OBJS)
  40.     slink $(LDFLAGS) $(OBJS) TO $@ $(LIBS)
  41.  
  42. gzip.o: gzip.c gzip.h tailor.h revision.h lzw.h getopt.h
  43. zip.o: zip.c gzip.h tailor.h crypt.h
  44. deflate.o: deflate.c gzip.h tailor.h
  45. bits.o: bits.c gzip.h tailor.h crypt.h
  46. unzip.o: unzip.c gzip.h tailor.h crypt.h
  47. inflate.o: inflate.c gzip.h tailor.h
  48. util.o: util.c gzip.h tailor.h crypt.h
  49. lzw.o: lzw.c lzw.h gzip.h tailor.h
  50. unlzw.o: unlzw.c gzip.h tailor.h revision.h lzw.h
  51. unpack.o: unpack.c gzip.h tailor.h
  52. #unlzh.o: unpack.c gzip.h tailor.h
  53. unlzh.o: unlzh.c gzip.h tailor.h
  54. crypt.o: crypt.c gzip.h tailor.h
  55. getopt.o: getopt.c getopt.h
  56. tailor.o: tailor.c
  57.  
  58. alloca.o: alloca.c
  59.     $(CC) $(DEFS) DEF=STACK_DIRECTION=-1 $(CFLAGS) $(OPTFLAGS) $<
  60.  
  61. match.o: match.a
  62.  
  63. # Compile trees.c without optimization (produces incorrect code)
  64.  
  65. trees.o: trees.c gzip.h tailor.h
  66.     $(CC) $(DEFS) $(CFLAGS) $<
  67.